package com.flashflexpro.tanksinbattle.battlescenegunfort {
import com.flashflexpro.tanksinbattle.battlescene.BattleScene;
import com.flashflexpro.tanksinbattle.battlescene.BattleSceneObject;
import com.flashflexpro.tanksinbattle.battlescenegunfort.dto.GunFortDto;
import com.flashflexpro.tanksinbattle.scene.AModule;
import com.flashflexpro.tanksinbattle.scene.dto.Dto;

import flash.events.Event;


public class BattleSceneGunfort extends BattleSceneObject implements AModule{
    public function BattleSceneGunfort( dto:GunFortDto, scene:BattleScene) {
        super( dto, scene );
        scene.hitted.push( this );
    }

    private var _turret:BattleSceneGunfortTurret;


    [Bindable(event="turretChanged")]
    public function get turret():BattleSceneGunfortTurret {
        return _turret;
    }

    public function set turret(value:BattleSceneGunfortTurret):void {
        if (_turret == value) return;
        _turret = value;
        dispatchEvent(new Event("turretChanged"));
    }

    public function start(dto:Dto):void {
    }

    public function destroy():void {
    }
}
}